<?php
	require_once './source/class/core.class.php';
	$core = &l3z_core::instance();
	$core->init();
	
	$_GET['rid'] = intval($_GET['rid']);
	DB::delete('comments', array('comment_id' => $_GET['rid']));
	//header('location:.getenv("HTTP_REFERER")');
	
	echo "<script>history.go(-1);location.href = document.referrer;</script>";

?>